<template>
  <swiper :style="{ height: height + 'rpx' }" autoplay indicator-dots circular>
    <swiper-item v-for="item in list" :key="item.id">
      <image :src="item.imgUrl" />
    </swiper-item>
  </swiper>
</template>

<script setup>
defineProps({
  list: Array,
  height: String,
});
</script>

<style scoped>
.carousel {
  /*   记得修复高度问题 */
  height: 100%;
}

/* #ifdef H5 */
image {
  width: 750rpx;
  height: 280rpx;
}
/* #endif */
</style>
